package com.xiaozhengkeji.springboot.frame.easy.api;

import com.xiaozhengkeji.springboot.frame.easy.Bean.ResponseBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.LinkedHashMap;

@Slf4j
@RestController
@RequestMapping("/public/sys")
public class SystemApi {
    @GetMapping("/info")
    public ResponseBean getInfo() {
        HashMap<String, Object> objectHashMap = new LinkedHashMap<>();
        objectHashMap.put("systemVar", "0.0.2.BATE");
        return new ResponseBean(200, "ok", objectHashMap);
    }
}
